<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .myicon {
            width: 50px;
            height: 50px;
            border: 1px solid red;
            background-image: url(./images/icon.png);
            background-repeat: no-repeat;
        }

        .icon1 {
            background-position: 0 0;
        }

        .icon2 {
            margin-top: 30px;
            background-position: right bottom;
        }
    </style>
</head>
<body>
    <div class="myicon icon1"></div>
    <div class="myicon icon2"></div>
</body>
</html>